package com.portal.business.helps.action;




import com.portal.business.helps.HelpsService;
import com.portal.business.helps.action.form.HelpsSearchForm;
import com.portal.business.helps.action.model.HelpsModel;
import com.portal.business.helps.dto.HelpsDTO;
import com.portal.framework.exception.AppException;
import com.portal.framework.webutil.BaseAction;


/**
 * 
 * 项目名称: Portal     
 * 类名称:   HelpsAction     
 * 类描述:   帮助模块(只有查询功能,增删改功能在客服系统后台里调用操作)
 * 创建人:   骆海东
 * 创建时间: Aug 29, 2011 5:09:52 PM     
 * 最后修改人:   骆海东
 * 最后修改时间: Aug 29, 2011 5:09:52 PM     
 * 最后修改备注:
 */
public class HelpsAction extends BaseAction {
	    
	    
	private static final long serialVersionUID = -1189130864414888226L;

	private HelpsModel model = new HelpsModel();
	
	private HelpsService helpsService;
	/**
	 *查询前
	 * 
	 * @return
	 * @throws AppException
	 */
	public String goHelpsMain() {
		HelpsSearchForm sf=model.getSearchForm();
	        //分页查询结果集
		    model.setPagerResult(this.findByCondition(HelpsDTO.class, sf));
			return SUCCESS;
	}
	/**
	 *首页展示查询
	 * 
	 * @return
	 * @throws AppException
	 */
	public String goHelpsIndex() {
		
		 this.getRequest().setAttribute("hDTOs",this.helpsService.findIndex());
		return SUCCESS;
	}
	
	public HelpsModel getModel() {
		return model;
	}

	public void setModel(HelpsModel model) {
		this.model = model;
	}

	public HelpsService getHelpsService() {
		return helpsService;
	}

	public void setHelpsService(HelpsService helpsService) {
		this.helpsService = helpsService;
	}

}
